package com.antball.dd.abserver.alarm;

import java.util.ArrayList;
import java.util.List;

public class Main {

    public static void main(String[] args) {

        BellEventPublisher bellPublisher = new BellEventPublisher();    //铃（事件源）
        bellPublisher.addListener(new TeachesListener()); //注册监听器（老师）
        bellPublisher.addListener(new StudentsListener());    //注册监听器（学生）

        bellPublisher.ring(RingEvent.BellTypeEnum.START);   //打上课铃声
        System.out.println("------------");

        bellPublisher.ring(RingEvent.BellTypeEnum.OVER);  //打下课铃声

        List<String> arr = new ArrayList<String>();

        List listUpper;//上界统配符 ?， 上界为  C2
        listUpper=new ArrayList();//能存储 C2 D1 D2 E1 E2 E3 E4
    }
}
